package com.why.cachecloud.dao;

import com.why.cachecloud.entity.WarnLog;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

public interface WarnLogDao {

    List<WarnLog> getAll();

    int countBy(@Param("appId") long appId,
                @Param("warnType") String warnType,
                @Param("dateTime") LocalDateTime dateTime);

    int insert(WarnLog log);
}